﻿capital = 107

oob = "tabrasa_1936HUN"


recruit_character = YUG_prince_paul
recruit_character = YUG_milan_stojadinovic
recruit_character = YUG_milan_grol
recruit_character = YUG_josip_broz_tito
recruit_character = YUG_vladimir_Cukavac
recruit_character = YUG_ivan_gosnjak
recruit_character = YUG_danilo_kalafatovic
recruit_character = YUG_milutin_nedic
recruit_character = YUG_petar_kosic
recruit_character = YUG_josef_depre
recruit_character = YUG_marijan_polic
recruit_character = YUG_borivoje_mirkovic
recruit_character = YUG_dusan_simovic
recruit_character = YUG_draza_mihailovic
recruit_character = YUG_mihajlo_lukic
recruit_character = YUG_bogoljub_ilic
recruit_character = YUG_petar_vukcevic
recruit_character = YUG_ljubomir_maric
recruit_character = YUG_arso_jovanovic
recruit_character = YUG_slobodan_jovanovic
recruit_character = YUG_milovan_djilas
recruit_character = YUG_milan_nedic
recruit_character = YUG_ivan_ribar
recruit_character = YUG_dimitrije_ljotic
recruit_character = YUG_ivo_lola_ribar
recruit_character = YUG_peter_ii


# Starting tech
set_technology = {
	infantry_weapons = 1
	gw_artillery = 1
	interwar_antiair = 1
	interwar_antitank = 1
	basic_train = 1
	motorised_infantry = 1
	tech_support = 1
	basic_train = 1
	tech_trucks = 1 
	tech_mountaineers = 1
}
add_equipment_to_stockpile = { type = train_equipment_1 amount = 75 producer = GER }


if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "He 51" #also covers Ar 68
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}
	create_equipment_variant = {
		name = "Ju 86"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = lmg_defense_turret
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
	}	
	else = {
		set_technology = {
			early_fighter = 1
			early_bomber = 1
		}
	}
}	

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = { 
		gwtank = 1
	}
}

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = { 
		gwtank_chassis = 1
		
	}
}

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		basic_torpedo = 1
		coastal_defense_ships = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
	}
}

if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Hrabri Class"			
		type = ship_hull_light_1
		name_group = YUG_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Dalmacija Class"					
		type = ship_hull_cruiser_1
		name_group = YUG_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = ship_airplane_launcher_1
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "Beograd Class"
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = YUG_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = dp_ship_secondaries_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}





if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
}

set_convoys = 20
set_research_slots = 4
set_stability = 0.6
add_political_power = 2000
add_manpower = 50000
add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 10000 producer = GER }


set_popularities = {
	democratic = 25
	fascism = 25
	communism = 25
	neutrality = 25
}


if = {
	limit = {
		has_dlc = "Death or Dishonor"
	}
	add_ideas = {
		YUG_idea_croatian_opposition
		YUG_idea_macedonian_opposition
		YUG_idea_slovene_nationalism
		YUG_idea_serbian_general_staff
	}
}
add_ideas = {
	anti_german_military
}

if = {
	limit = {
		#has_dlc = Battle for the Bosporus
	}
	add_opinion_modifier = { 
		target = GRE
		modifier = BFTB_balkan_pact_ally
	}
	add_opinion_modifier = { 
		target = ROM
		modifier = BFTB_balkan_pact_ally
	}
	add_opinion_modifier = { 
		target = TUR
		modifier = BFTB_balkan_pact_ally
	}
	add_opinion_modifier = { 
		target = BUL
		modifier = BFTB_balkan_pact_enemy
	}
	add_opinion_modifier = { 
		target = HUN
		modifier = BFTB_balkan_pact_enemy
	}
}


1939.1.1 = {

	add_ideas = {
		limited_conscription
	}
	if = {
	limit = {
		has_dlc = "Death or Dishonor"
	}
	add_ideas = {
		YUG_idea_foreign_capital
		YUG_idea_expanded_mining_industry
		YUG_license_production
		YUG_idea_orthodox_church_support
	}
}
	
	if = {
	limit = {
		has_dlc = "Death or Dishonor"
	}
		complete_national_focus = YUG_western_focus
		complete_national_focus = YUG_industrialization_program
		complete_national_focus = YUG_friendship_treaty_with_italy
		complete_national_focus = YUG_attract_axis_capital
		complete_national_focus = YUG_expand_the_mining_industry
		complete_national_focus = YUG_develop_civilian_industry
		complete_national_focus = YUG_evolution
		complete_national_focus = YUG_army_modernization
		complete_national_focus = YUG_mountain_brigades
		complete_national_focus = YUG_modernize_the_air_force
		complete_national_focus = YUG_purchase_foreign
		complete_national_focus = YUG_license_production 
		complete_national_focus = YUG_fighter_license 
		complete_national_focus = YUG_rare_minerals_exploitation
		complete_national_focus = YUG_establish_the_banovina_of_croatia
		complete_national_focus = YUG_ban_slovene_nationalist_parties
		complete_national_focus = YUG_concessions_for_macedonians
		complete_national_focus = YUG_small_arms 
		complete_national_focus = YUG_domestic_artillery_production
		complete_national_focus = YUG_expand_the_serbian_shipyards
	}
}


set_politics = {
	ruling_party = neutrality
	last_election = "1935.5.3"
	election_frequency = 36
	elections_allowed = yes
}


1939.1.1 = {
	set_politics = {
		ruling_party = neutrality
		last_election = "1938.12.1"
		election_frequency = 36
		elections_allowed = yes
	}
}
